<template>
  <!-- 布局容器 -->
  <el-container height="100%">
    <el-header class="head" height="70px">
      <Head></Head>
    </el-header>
    <el-container height="100%">
      <el-aside width="200px" height="100%" class="nav">
        <Nav></Nav>
      </el-aside>
      <el-main class="main">
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>

</template>

<script>
  import Head from "./head/Head";
  import Nav from "./head/Nav";

  export default {
    name: "Main",
    components: {Nav, Head}
  }
</script>

<style scoped>
  .head {
    background-color: rgb(36, 47, 66);
    color: white;
    line-height: 70px;
  }

  .nav {
    background-color: rgb(50, 65, 87);
    height: 100%;
  }

  .el-container {
    height: 100%;
  }
  .main{
    background-color: rgb(240,240,240);
  }
</style>
